package edu.sctu.wulixia.month6.day20150614;

import java.io.File;

/**
 * Created by user05 on 2015/6/14.
 */
public class DeleteFile {
    public void isDeleteFile(){
        File file = new File("D://wulixia//wangliu.txt");
        if(file.exists()){
            file.delete();
            System.out.println("文件删除成功");
        }else{
            System.out.println("文件不存在，删除失败");
        }
    }

}
